﻿using System;
using System.Collections.Generic;
using System.Text;
using DuckGame1._0.Fly;
using DuckGame1._0.Quack;

namespace DuckGame1._0.Duck
{
    //机器鸭
    public class MachineDuck:DuckBase
    {
        public override string ToString()
        {
            return "我是机器鸭";
        }
        public MachineDuck()
        {
            //飞的行为
            base.FlyBehavior = new FlyJetengine();
            //叫的行为
            base.QuackBehavior = new Quack3();
        }
    }
}
